﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="advisorRegistration.aspx.cs" Inherits="Project.advisorRegistration" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
            <tr><td colspan="2" align="center"><h2>Advisor Sign-Up</h2></td></tr>
            <tr><td class="auto-style1">&nbsp;</td><td class="auto-style1">&nbsp;</td></tr>
            <tr><td class="auto-style1">
                <asp:Label ID="lbl_advisorID" runat="server" Text="Advisor ID"></asp:Label>
                </td><td class="auto-style1">
                    <asp:TextBox ID="txt_advisorID" runat="server"></asp:TextBox>
                </td><td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter Advisor ID" ControlToValidate="txt_advisorID"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Please Enter valid Advisor ID (ex. 300XXXXXX)" ControlToValidate="txt_advisorID" ValidationExpression="^300[0-9]{6}"></asp:RegularExpressionValidator></td></tr>
        <tr><td class="auto-style1">
            <asp:Label ID="lbl_firstName" runat="server" Text="First Name"></asp:Label>
            </td><td class="auto-style1">
                <asp:TextBox ID="txt_firstName" runat="server"></asp:TextBox>
            </td><td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter your First Name" ControlToValidate="txt_firstName"></asp:RequiredFieldValidator></td></tr>
        <tr><td class="auto-style1">
            <asp:Label ID="lbl_lastName" runat="server" Text="Last Name"></asp:Label>
            </td><td class="auto-style1">
                <asp:TextBox ID="txt_lastName" runat="server"></asp:TextBox>
            </td><td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please enter your Last Name" ControlToValidate="txt_lastName"></asp:RequiredFieldValidator>
            </td></tr>
        <tr><td class="auto-style1">
                <asp:Label ID="lbl_password" runat="server" Text="Password"></asp:Label>
                </td><td class="auto-style1">
                    <asp:TextBox ID="txt_password" runat="server" TextMode="Password"></asp:TextBox>
                </td><td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please Enter Password" ControlToValidate="txt_password"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_password" ErrorMessage="Your password must have atleast 8 characters including one upercase, one lowercase and one digit." ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$"></asp:RegularExpressionValidator>
            </td></tr>
            <tr><td class="auto-style1">
                <asp:Label ID="lbl_confirmPassword" runat="server" Text="Confirm Password"></asp:Label>
                </td><td class="auto-style1">
                    <asp:TextBox ID="txt_confirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td><td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please Enter Confirm Password" ControlToValidate="txt_confirmPassword"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password doesn't match" ControlToCompare="txt_password" ControlToValidate="txt_confirmPassword"></asp:CompareValidator>
                </td></tr>
            <tr><td class="auto-style1">
                <asp:Label ID="lbl_email" runat="server" Text="E-mail"></asp:Label>
                </td><td class="auto-style1">
                    <asp:TextBox ID="txt_email" runat="server"></asp:TextBox>
                </td><td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_email" ErrorMessage="Please Enter Email"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="\S+@[a-z]+\.\S+" ErrorMessage="Please enter the email address in 
                                    valid format(abc@abc.com)" ControlToValidate="txt_email" Display="Dynamic"></asp:RegularExpressionValidator></td></tr>
            <tr><td class="auto-style1">&nbsp;</td><td class="auto-style1">&nbsp;</td></tr>
            <tr><td colspan="2" align="center">
                <asp:Button ID="btn_clear" runat="server" Text="Clear" Width="68px" OnClick="btn_clear_Click" CausesValidation="False" UseSubmitBehavior="False" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btn_submit" runat="server" Text="Submit" Width="68px" OnClick="btn_submit_Click" />
                </td></tr>
            </table>
        <br />
        <div><asp:Label ID="lbl_thankyou" Font-Size="X-Large" ForeColor="Red" runat="server" Text=""></asp:Label></div>
    </div>
    </form>
</body>
</html>
